<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">
    <title>Document</title>
  </head>
  <body>
    <script>
      var obj = new Object();		// 创建了一个空对象
      obj.name = '小明';		  	// 创建对象后，为对象添加成员
      obj.age = 18;
      obj.sex = '男';
      obj.sayHello = function () {
        console.log('Hello');
      };
    </script>
  </body>
</html>